<?php


namespace App\Http\Controllers\Mini\Shop;


use App\Http\Controllers\Controller;
use App\Services\FeedbackClassService;

/**
 * 反馈分类 控制器
 * Class FeedbackClassController
 * @package App\Http\Controllers\Mini\Shop
 */
class FeedbackClassController extends Controller
{
    public $feedbackService;

    public function __construct()
    {
        $this->feedbackService = new FeedbackClassService();
    }


    /**
     * 2021/3/10--9:29
     * @return array
     * @author:董宗澳
     * @email:2453611300
     * @wechat:DZA74941
     * @QQ:2453611300
     * @web:www.quzha.net
     * @method:list
     * @effect:获取反馈分类列表
     */
    public function list()
    {
        try {
            return $this->feedbackService->getList(1, false, false);
        } catch (\Exception $e) {
            return $this->format_error($e->getMessage());
        }
    }

    public function __destruct()
    {

        $this->feedbackService;
        // TODO: Implement __destruct() method.
    }
}
